package com.sinosoft.oms.service;

import com.sinosoft.oms.dto.OrderBean;
import com.sinosoft.oms.entity.oms.Appnt;
import com.sinosoft.oms.entity.oms.Insured;
import com.sinosoft.oms.entity.oms.Order;
import com.sinosoft.oms.entity.oms.Product;

/**
 * @author:Frankiegg
 * @date:2018/5/15
 * @project:bee
 * @Modified By:
 **/
public interface OrderService {
    /**
     * 插入订单
     * @param order
     * @param appnt
     * @param insured
     * @param product
     * @return boolean
     */
     boolean insertOrder(Order order, Appnt appnt, Insured insured, Product product);
    /**
     * 删除订单
     * @param orderId
     * @return boolean
     * @throws
     */
     boolean deleteOrder(String orderId);
     /**
      * 修改订单
      * @param order
      * @param appnt
      * @param insured
      * @param product
      * @return boolean
      * @throws
      */
     boolean updateOrder(Order order,Appnt appnt,Insured insured,Product product);
     /**
      * 根据订单Id查找订单
      * @author Frankiegg
      * @param orderId
      * @date 10:25 2018/5/17
      * @return com.sinosoft.oms.dto.OrderBean
      * @throws
      */
     OrderBean findByOrderId(String orderId);
}
